import Vue from 'vue';
import VueRouter from 'vue-router';
import VueResource from 'vue-resource';
import App from './App';
import routes from './router/router'//定义路由
import './common/js/config';
import './common/js/basa';
import './common/js/rem';
import $ from "webpack-zepto";
Vue.config.productionTip = false;
Vue.use(VueRouter);//明确地安装路由模块
Vue.use(VueResource);
const router = new VueRouter({
  routes
})//  创建 router 实例
new Vue({
  el: '#app',
  model: 'history',
  router,
  template: '<App/>',
  components: { App }
});
//。。可以放在created或者ready里面运行来获取或者更新数据...可以放在created或者ready里面运行来获取或者更新数据...